<div class="zs-body" data-ng-init="formInit('gislayerconfig', {
        keyField:'id',
        randomFields:['id'],
        orderObject:{registerService:0,index:0}
    }) && loadData('gislayerconfig');setConHei();">
    <div class="zs-map-tool">
        <div class="location">
            <a href="javascript:;">首页</a>
            <i class="right-arr"></i>
            <a href="javascript:;">地图配置</a>
            <i class="right-arr"></i>
            <a href="javascript:;">图层参数</a>
        </div>
        <div class="option">
            <input type="button" class="zs-btn orange" value="新建" 
                ng-click="addTreeRow('gislayerconfig') && openWindow('edit');"/>
            <input type="button" class="zs-btn orange" value="编辑" 
                ng-click="editRow('gislayerconfig', gislayerconfig.sRows[0]) && openWindow('edit')"/>
            <input type="button" class="zs-btn orange" value="删除 "
                ng-click="delEntitys('gislayerconfig')"/>
        </div>
    </div>
    <div class="zs-content" style="position:unset">
        <div class="zs-nice-tab idTabs">
            <div class="link item" data-ng-init="iniTab('gislayerconfig', 'all', 'selected');">
                <a ng-click="setTab('gislayerconfig', 'all') && setQueryObject('gislayerconfig','valid2D','null') && setQueryObject('gislayerconfig','valid3D','null') && loadData('gislayerconfig')" 
                    class="{{tabs['gislayerconfig'].tabClass['all']}}">全部图层</a>
                <a ng-click="setTab('gislayerconfig', '2d') && setQueryObject('gislayerconfig','valid2D',true) && setQueryObject('gislayerconfig','valid3D','null') && loadData('gislayerconfig')" 
                    class="{{tabs['gislayerconfig'].tabClass['2d']}}">2D图层</a>
                <a ng-click="setTab('gislayerconfig', '3d') && setQueryObject('gislayerconfig','valid2D','null') && setQueryObject('gislayerconfig','valid3D',true) && loadData('gislayerconfig')" 
                    class="{{tabs['gislayerconfig'].tabClass['3d']}}">3D图层</a>
            </div>
            <div class="tool item">
                <span class="search-warpper">
                    <ag-Combobox class="zs-input" style="height:28px;" placeholder="所属应用"
                        para="{uDictionary:true,dictionary:'p_register_service',addSpace:true,superNullItem:false}"
                        ng-model="gislayerconfig.queryObject['registerService']" />
                </span>
                <span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="图层名称" ng-model="gislayerconfig.queryObject['name:like']"/>
                </span>
            </div>
            <div class="operation item">
                <a class="ope-1" ng-click="loadData('gislayerconfig')"></a>
                <a class="ope-2"></a>
            </div>
            <div class="switch">
                
            </div>
        </div>
        <div class="date-container">
            <div id="zpgwd">
                <div class="zs-data-table">
                    <div class="container">
                        <table>
                            <thead>
                                <tr>
                                    <th>
                                        <input id="allCheckbox" type="checkbox"
                                            ng-click="selectAll('gislayerconfig','allCheckbox');">
                                    </th>
                                    <th>顺序</th>
                                    <th>名称/分组</th>
                                    <th>类型/应用</th>
                                    <th>2D可用/显示</th>
                                    <th>3D可用/显示</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr ng-repeat="r in gislayerconfig.datas">
                                    <td>
                                        <input type="checkbox"
                                            ng-click="selectRow('gislayerconfig',r);"
                                            ng-model="r.selected" />
                                    </td>
                                    <td>
                                        <a ng-click="editRow('gislayerconfig',r) && openWindow('edit');">
                                            <label ng-bind="r.index"></label>
                                        </a>
                                    </td>
                                    <td>
                                        <a ng-click="editRow('gislayerconfig',r) && openWindow('edit');">
                                            <label ng-bind="r.name"></label>
                                            /
                                            <label ng-bind="r.groupname"></label>
                                        </a>
                                    </td>
                                    <td>
                                        <a ng-click="editRow('gislayerconfig',r) && openWindow('edit');">
                                            <label ng-bind="r.typeName"></label>
                                            /
                                            <label ng-bind="r.registerServiceName"></label>
                                        </a>
                                    </td>
                                    <td>
                                        <a ng-click="editRow('gislayerconfig',r) && openWindow('edit');">
                                            <label ng-bind="r.valid2D | asChineseBool"></label>
                                            /
                                            <label ng-bind="r.show2D | asChineseBool"></label>
                                        </a>
                                    </td>
                                    <td>
                                        <a ng-click="editRow('gislayerconfig',r) && openWindow('edit');">
                                            <label ng-bind="r.valid3D | asChineseBool"></label>
                                            /
                                            <label ng-bind="r.show3D | asChineseBool"></label>
                                        </a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="zs-pagination-box">
                    <ag-Page fn='gislayerconfig'></ag-Page>
                </div>
            </div>
        </div>

        <div ag-Window id="edit" title="图层编辑" width='560px' height='286px'>
            <div class="zs-form-tab ibox">
                <form name="form" novalidate>
                    <table width="100%">
                        <tbody>
                            <tr>
                                <td class="text" width="20%">顺序</td>
                                <td class="left" width="30%"><input type="text"
                                    ng-model="gislayerconfig.editRow.index"
                                    class="zs-input" required></td>
                                <td class="text" width="20%">所属应用</td>
                                <td class="left" width="30%">
                                    <ag-Combobox class="zs-input" style="width:175px;height:28px;"
                                        para="{uDictionary:true,dictionary:'p_register_service'}"
                                        ng-model="gislayerconfig.editRow.registerService"
                                        text-Value="gislayerconfig.editRow.registerServiceName" />
                                </td>
                            </tr>
                            <tr>
                                <td class="text" width="20%">名称</td>
                                <td class="left" width="30%"><input type="text"
                                    ng-model="gislayerconfig.editRow.name"
                                    class="zs-input" required></td>
                                <td class="text" width="20%">类型</td>
                                <td class="left" width="30%">

                                    <ag-Combobox class="zs-input" style="width:175px;height:28px;"
                                            para="{uDictionary:true,dictionary:'g_layertype'}"
                                            ng-model="gislayerconfig.editRow.type"
                                            text-Value="gislayerconfig.editRow.typeName" />
                                </td>
                            </tr>
                            <tr>
                                <td class="text" width="20%">分组</td>
                                <td class="left" width="30%"><input type="text"
                                    ng-model="gislayerconfig.editRow.groupname"
                                    class="zs-input" required></td>
                                <td class="text" width="20%">显示集</td>
                                <td class="left" width="30%"><input type="text"
                                    ng-model="gislayerconfig.editRow.showids"
                                    class="zs-input" required></td>
                            </tr>
                            <tr>
                                <td class="text" width="20%">地址</td>
                                <td colspan="3" class="left" width="80%"><input type="text"
                                    ng-model="gislayerconfig.editRow.url"
                                    class="zs-input" required></td>
                            </tr>
                            <tr>
                                <td class="text" width="20%">透明度</td>
                                <td class="left" width="30%"><input type="text"
                                    class="zs-input" ng-model="gislayerconfig.editRow.transparency"></td>
                                <td class="text" width="20%">过滤</td>
                                <td class="left" width="30%"><input type="text"
                                    ng-model="gislayerconfig.editRow.definitions"
                                    class="zs-input" required></td>
                            </tr>
                            <tr>
                                <td class="text" width="20%">2D</td>
                                <td class="left" width="30%">
                                    <input type="checkbox" ng-model="gislayerconfig.editRow.valid2D"
                                        ng-true-value="true" ng-false-value="false" value='false' />
                                    可用
                                    <input type="checkbox" ng-model="gislayerconfig.editRow.show2D"
                                        ng-true-value="true" ng-false-value="false" value='false' />
                                    显示
                                </td>
                                <td class="text" width="20%">3D</td>
                                <td class="left" width="30%">
                                    <input type="checkbox" ng-model="gislayerconfig.editRow.valid3D"
                                        ng-true-value="true" ng-false-value="false" value='false' />
                                    可用
                                    <input type="checkbox" ng-model="gislayerconfig.editRow.show3D"
                                        ng-true-value="true" ng-false-value="false" value='false' />
                                    显示
                                </td>
                            </tr>
                        </tbody>
                        <tfoot>
                            <tr>
                                <td colspan="4">
                                    <input type="button" name="ok" value="保存" class="zs-btn c-red"
                                        ng-click="formValidate(form) && save('gislayerconfig', gislayerconfig.editRow, saveCloseWindow)"/>
                                    <input type="button" name="ok" value="取消" class="zs-btn c-green" 
                                        ng-click="closeWindow('edit')" />
                                </td>
                            </tr>
                        </tfoot>
                    </table>
                </form>
            </div>
        </div>
    </div>
</div>